package com.design.factory;

import com.design.product.connection.IConnection;
import com.design.product.mysql.MysqlConnection;
import com.design.product.dao.UserDao;
import com.design.product.mysql.MysqlUserDao;

/**
 * MySQL数据工厂
 */
public class MySqlDataFactory implements DataFactory{
    @Override
    public IConnection createConnection() {
        return new MysqlConnection();
    }

    @Override
    public UserDao createUserDao() {
        return new MysqlUserDao();
    }
}
